<?php

$this->instance('path', $this->path());
$this->instance('path.base', $this->basePath());
$this->instance('path.lang', $this->langPath());
$this->instance('path.config', $this->configPath());
$this->instance('path.public', $this->publicPath());
$this->instance('path.storage', $this->storagePath());
$this->instance('path.database', $this->databasePath());
$this->instance('path.resources', $this->resourcePath());
$this->instance('path.bootstrap', $this->bootstrapPath());


public function path() {
    return $this->basePath.DIRECTORY_SEPARATOR.'app';}

public function basePath() {
    return $this->basePath;}

public function bootstrapPath() {
    return $this->basePath.DIRECTORY_SEPARATOR.'bootstrap';}

public function configPath() {
    return $this->basePath.DIRECTORY_SEPARATOR.'config';}

public function databasePath() {
    return $this->databasePath ?: $this->basePath.DIRECTORY_SEPARATOR.'database';}

public function langPath() {
    return $this->resourcePath().DIRECTORY_SEPARATOR.'lang';}

public function publicPath() {
    return $this->basePath.DIRECTORY_SEPARATOR.'public';}

public function storagePath() {
    return $this->storagePath ?: $this->basePath.DIRECTORY_SEPARATOR.'storage';}

public function resourcePath() {
    return $this->basePath.DIRECTORY_SEPARATOR.'resources';}

public function environmentPath() {
    return $this->environmentPath ?: $this->basePath;}

public function environmentFile() {
    return $this->environmentFile ?: '.env';}

public function environmentFilePath() {
    return $this->environmentPath().'/'.$this->environmentFile();}

public function getCachedRoutesPath() {
    return $this->bootstrapPath().'/cache/routes.php';}

public function getCachedCompilePath() {
    return $this->bootstrapPath().'/cache/compiled.php';}

public function getCachedServicesPath() {
    return $this->bootstrapPath().'/cache/services.php';}

// =====================================================

另外，在文件 \bootstrap\autoload.php 中有如下的一段内容

/*
|--------------------------------------------------------------------------
| Include The Compiled Class File
|--------------------------------------------------------------------------
|
| To dramatically increase your application's performance, you may use a
| compiled class file which contains all of the classes commonly used
| by a request. The Artisan "optimize" is used to create this file.
|
*/

$compiledPath = __DIR__.'/cache/compiled.php';

if (file_exists($compiledPath)) {
    require $compiledPath;
}

这个文件是在哪里生成的呢？

// =====================================================